package com.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xdl
 * @since 2022-09-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("o_order_shop")
@ApiModel(value = "OrderShop对象", description = "")
public class OrderShop implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品id")
    private String gid;

    @ApiModelProperty("商品名称")
    private String goodsname;

    @ApiModelProperty("商品图片")
    private String img;

    @ApiModelProperty("商品类型")
    private String typename;

    @ApiModelProperty("商品规格")
    private String gsname;

    @ApiModelProperty("商品品牌")
    private String gbname;

    @ApiModelProperty("商品储藏")
    private String gdname;

    @ApiModelProperty("商品单价")
    private String dprice;

    @ApiModelProperty("商品总价")
    private String zprice;

    @ApiModelProperty("商品数量")
    private Integer tbQuantity;

    @ApiModelProperty("订单id")
    private Integer oid;

    @ApiModelProperty("店铺名称")
    private String sname;

    @ApiModelProperty("购物车id")
    private Integer shopcarId;

    @TableLogic
    @ApiModelProperty("逻辑删除 1（true）已删除， 0（false）未删除")
    private Integer isDeleted;

    @TableField(fill= FieldFill.INSERT,value = "gmt_create")
    @ApiModelProperty("创建时间")
    private LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime gmtModified;
}
